﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics;

namespace Jet.Dal.EF.Tests.DataObjects
{
	/// <summary>
	/// Information about shippers from Northwind database
	/// </summary>
	[DebuggerDisplay("{ShipperID} - {CompanyName}")]
	[Table("Shippers")]
	public class Shipper
	{
		[Key]
		public int ShipperID { get; set; }

		[Column]
		public string CompanyName { get; set; }

		[Column]
		public string Phone { get; set; }

		public virtual ICollection<Order> Orders { get; set; }

		public override string ToString()
		{
			return String.Format("Shipper {0} - {1}", ShipperID, CompanyName);
		}
	}
}
